<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>  
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="<%=request.getContextPath()%>/resources/common/js/jquery.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/resources/common/js/jquery.dataTables.min.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/resources/common/js/bootstrap.min.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/resources/common/js/jquery.ztree.all.min.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/resources/common/js/bootstrapValidator.min.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/resources/common/js/common.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/resources/company/js/company.js"></script>
 	<link rel="stylesheet" href="<%=request.getContextPath()%>/resources/common/css/bootstrap.min.css"/> 
	<link rel="stylesheet" href="<%=request.getContextPath()%>/resources/common/css/jquery.dataTables.min.css"/> 
	<link rel="stylesheet" href="<%=request.getContextPath()%>/resources/common/css/bootstrapValidator.min.css"/> 
	<link rel="stylesheet" href="<%=request.getContextPath()%>/resources/common/css/zTreeStyle.css"/>
</head>
<body>
       <div class="container-fluid">
				<div class="info-center">
					<div class="page-header">
                      <div class="pull-left">
						<h4>消息中心</h4>      
					</div>
                     </div>
                     
                     <div class="page-header">
                     
                     
                   
                 <input type="button" class="btn btn-danger btn-sm" value="批量删除" onclick="deleteRole()">
                    	<input type="button" class="btn btn-primary btn-sm addBtn" value="添加" onclick="companyadd()">
                     
                     
                   
					
                    
                    
					<div class="table-margin">
                      <table class="table table-bordered table-header" id="example2">
                    	<thead>
							<tr>
								<th><input type="checkbox" name="allChecked" /></th>
							  	<th>id</th>
							  	<th>公司名称</th>
							  	<th>法人名称</th>
							  	<th>法人身份证号</th>
							  	<th>注册资金</th>
							  	<th>公司简介</th>
							  	<th>地址</th>
							  	<th>电话</th>
							  	<th>操作</th>
							  </tr>
	 				 	</thead>
                         <tbody>
                        
                         </tbody>
                      </table>
                <!--     </div>
				</div>
				<div class="show-page hidden">
					<ul>
					</ul>
				</div> -->
				
				
				
 				<!--新增页面开始  -->
<div class="modal fade" id="myModal-add-infoq" tabindex="-1" role="dialog"
                 aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close"
                                    data-dismiss="modal" aria-hidden="true">
                                &times;
                            </button>
                            <h4 class="modal-title" id="myModalLabel">
                                新 增
                            </h4>
                        </div>
                        <form class="form-horizontal" role="form" action="" method="post"  id="category_add">
                            <div class="modal-body">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" >公司名称： </label>
										<input type="hidden" id="ycid">
                                    <div class="col-sm-9">
                                        <input type="text"  class="form-control" name="companyname" id="companynameid" style="width: 250px" maxlength="15" placeholder="10个汉字以内" />

                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" >法人名称： </label>

                                    <div class="col-sm-9">
                                        <input type="text"   class=" sortNumber form-control"  name="legalpersonname" id="legalpersonnameid" style="width: 250px"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" >法人身份证号： </label>
										<input type="hidden" id="ycid">
                                    <div class="col-sm-9">
                                        <input type="text"  class="form-control" id="legalpersonidcardid"  name="legalpersonidcard" style="width: 250px"/>

                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" >注册资金： </label>

                                    <div class="col-sm-9">
                                        <input type="text"   class=" sortNumber form-control"  name="registeredcapital" id="registeredcapitalid" style="width: 250px" />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" >公司简介： </label>
										<input type="hidden" id="ycid">
                                    <div class="col-sm-9">
                                        <input type="text"  class="form-control" id="companyprofileid"  name="companyprofile" style="width: 250px"/>

                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" >地址： </label>

                                    <div class="col-sm-9">
                                        <input type="text"   class=" sortNumber form-control"  name="companyaddress" id="companyaddressid" style="width: 250px" />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" >电话： </label>

                                    <div class="col-sm-9">
                                        <input type="text"   class=" sortNumber form-control"  name="phone" id="phoneid" style="width: 250px" />
                                    </div>
                                </div>
                           
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-default"
                                        data-dismiss="modal">关闭
                                </button>
                                <button type="button" class="btn btn-primary" onclick="companyaddtj()">提交
                                </button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            
            
            
            
            
             
            <div class="modal fade" id="myModal-update-info" tabindex="-1" role="dialog"
                 aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close"
                                    data-dismiss="modal" aria-hidden="true">
                                &times;
                            </button>
                            <h4 class="modal-title" id="myModalLabel">
                                修改
                            </h4>
                        </div>
                       
                           <form class="form-horizontal" role="form" action="" method="post"  id="category_update">
                            <div class="modal-body">
                                <div class="form-group">
                                	<input type="hidden" id="uuupdate" name="id">
                                    <label class="col-sm-3 control-label no-padding-right" >公司名称： </label>
										
                                    <div class="col-sm-9">
                                        <input type="text"  class="form-control" name="companyname" id="companynameid1" style="width: 250px"/>

                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" >法人名称： </label>

                                    <div class="col-sm-9">
                                        <input type="text"   class=" sortNumber form-control"  name="legalpersonname" id="legalpersonnameid1" style="width: 250px" />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" >法人身份证号： </label>
										<input type="hidden" id="ycid">
                                    <div class="col-sm-9">
                                        <input type="text"  class="form-control" id="legalpersonidcardid1"  name="legalpersonidcard" style="width: 250px"/>

                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" >注册资金： </label>

                                    <div class="col-sm-9">
                                        <input type="text"   class=" sortNumber form-control"  name="registeredcapital" id="registeredcapitalid1" style="width: 250px" />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" >公司简介： </label>
										<input type="hidden" id="ycid">
                                    <div class="col-sm-9">
                                        <input type="text"  class="form-control" id="companyprofileid1"  name="companyprofile" style="width: 250px"/>

                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" >地址： </label>

                                    <div class="col-sm-9">
                                        <input type="text"   class=" sortNumber form-control"  name="companyaddress" id="companyaddressid1" style="width: 250px" />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" >电话： </label>

                                    <div class="col-sm-9">
                                        <input type="text"   class=" sortNumber form-control"  name="phone" id="phoneid1" style="width: 250px" />
                                    </div>
                                </div>
                               
                           
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-default"
                                        data-dismiss="modal">关闭
                                </button>
                                <button type="button" class="btn btn-primary" onclick="updateCompany()">提交
                                </button>
                            </div>
                        </form>
                       
                    </div>
                </div>
            </div>
          
            
</body>
  
</html>
